package com.rags.chess.pieces;

import com.rags.chess.base.Color;
import com.rags.chess.base.Coordinate;
import com.rags.chess.base.Piece;
import com.rags.chess.game.Game;

public class Pawn extends Piece {
	private boolean moved = false;
	
	public Pawn(Color color, Coordinate position) {
		super(color, position, 1, "");
	}

	@Override
	public boolean isValidMove(Game game, Coordinate destination) {
		return ValidMoveHelper.isValidMovePawn(game, getPosition(), destination, moved);
	}

	public void setMoved(boolean moved) {
		this.moved = moved;
	}
}
